/*
* test1
*/
package com.pitop.market.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import com.pitop.market.entity.MarketRepairRecord;

/**
 * 维修记录 api请求熔断器
 *
 * @author test1
 */
@FeignClient(value = "pps-cloud-provider", fallback = MarketRepairRecordFeignApiImpl.class)
public interface MarketRepairRecordFeignApi {
    /**
     * 查询MarketRepairRecord一个详情信息
     *
     * @param id
     * @param code 编码
     * @return MarketRepairRecord
     */
    @GetMapping(value = "/marketRepairRecord/load")
    MarketRepairRecord load(@RequestParam("id") Long id, @RequestParam("code") String code);


    /**
     * 根据条件id查询MarketRepairRecord一个详情信息
     *
     * @param id
     * @return MarketRepairRecord
     */
    @GetMapping(value = "/marketRepairRecord/load/id/{id}")
    MarketRepairRecord loadById(@RequestParam("id") Long id);


    /**
     * 根据条件code查询MarketRepairRecord一个详情信息
     *
     * @param code 编码
     * @return MarketRepairRecord
     */
    @GetMapping(value = "/marketRepairRecord/load/code/{code}")
    MarketRepairRecord loadByCode(@RequestParam("code") String code);

    /**
     * 删除MarketRepairRecord
     */
    @DeleteMapping("/marketRepairRecord/delete")
    void delete(@RequestParam("id") Long id, @RequestParam("code") String code);


    /**
     * 查询MarketRepairRecord信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/marketRepairRecord/list")
    List<MarketRepairRecord> list(@RequestBody MarketRepairRecord marketRepairRecord, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 查询MarketRepairRecord信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/marketRepairRecord/list/by")
    List<MarketRepairRecord> listByPk(@RequestParam("id") Long id, @RequestParam("code") String code, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 统计MarketRepairRecord信息数量根据主键
     *
     * @return 总条数
     */
    @GetMapping(value = "/marketRepairRecord/count/by")
    Integer count(@RequestParam("id") Long id, @RequestParam("code") String code);

    /**
     * 统计MarketRepairRecord信息数量
     *
     * @return 总条数
     */
    @PostMapping(value = "/marketRepairRecord/count")
    Integer count(@RequestBody MarketRepairRecord marketRepairRecord);


    /**
     * 创建MarketRepairRecord
     *
     * @return MarketRepairRecord
     */
    @PostMapping("/marketRepairRecord/build")
    MarketRepairRecord build(@RequestBody MarketRepairRecord marketRepairRecord);


    /**
     * 修改MarketRepairRecord
     *
     * @return MarketRepairRecord
     */
    @PutMapping("/marketRepairRecord/modify")
    MarketRepairRecord modify(@RequestBody MarketRepairRecord marketRepairRecord);


}
